<style>
.portlet-container {
	
}

.column {
	width: 33%;
	float: left;
}

.portlet {
	margin: 10px 0 10px 10px;
	padding: 2px;
}

.lftcol .portlet {
	margin-right: 5px !important;
}

.rtcol .portlet {
	margin-left: 5px !important;
}

.portlet-header {
	padding: 5px 10px 8px;
}

.portlet-header .ui-icon {
	float: right;
}

.portlet-content {
	padding: 0.4em;
}

.ui-sortable-placeholder {
	border: 1px dotted black;
	visibility: visible !important;
	height: 50px !important;
}

.ui-sortable-placeholder * {
	visibility: hidden;
}

#content div.box table td {
	border-right: none !important;
}
</style>
<div id="content">
	<div class="box">
		<div class="title" style="margin: 0px !important;">
			<h5>系统信息</h5>
		</div>
		<div class="portlet-container">
			<div class="column">
				<div class="portlet">
					<div class="portlet-header">概况</div>
					<div class="portlet-content"
						style="height: 250px; overflow-y: auto; overflow-x: none;">
						<div class="table p0">
						    <table>
						          <thead>
						            <tr><th class="left" colspan="3">用户信息</th>
						          </tr></thead>
						          <tbody>
						             <tr>
						             	<td>用户名：<?php echo Yii::app()->session['user']['user']['username'];?></td>
						             	<td>登录次数：<?php echo Yii::app()->session['user']['user']['login_num'];?></td>
						             	<td>IP：<?php echo Yii::app()->session['user']['user']['last_loginip'];?></td>
						             </tr>
						             <tr>
						             	<td colspan="3">登录时间：<?php echo Yii::app()->session['user']['user']['last_logintime'];?></td>
						             </tr>
						          </tbody>
						    </table>

                            <?php
                            if(Yii::app()->session['user']['user']['loginname'] == 'administrator'){
                                ?>
                                <table>
                                    <thead>
                                    <tr><th class="left" colspan="4">未读信息</th>
                                    </tr></thead>
                                    <tbody>
                                    <tr>
                                        <td>
                                            反馈信息：<a href="<?php echo Yii::app()->request->baseUrl?>/index.php/manage/feedback/index"><?php echo $new_feedback;?></a>
                                        </td>
                                        <td>在线留言：<a href="<?php echo Yii::app()->request->baseUrl?>/index.php/manage/message/index"><?php echo $new_message;?></a></td>
                                        <td>友情链接：<a href="<?php echo Yii::app()->request->baseUrl?>/index.php/manage/friendlink/index"><?php echo $new_friendlink;?></a></td>
                                        <td>会员注册：<a href="<?php echo Yii::app()->request->baseUrl?>/index.php/manage/user/index"><?php echo $new_user;?></a></td>
                                    </tr>
                                    </tbody>
                                </table>
                                <?php
                            }
                            ?>
						    
						</div>
					 </div>
				</div>
				
				<div class="portlet">
					<div class="portlet-header">服务器信息</div>
					<div class="portlet-content"
						style="height: 250px; overflow-y: auto; overflow-x: none;">
						<table class="table">
							<tr><td>程序名称：新麦企业网站管理系统 - XMCMS(简称)</td></tr>
							<tr><td>系统版本：v1</td></tr>
							<tr><td>操作系统：<?php echo php_uname('s');?></td></tr>
							<tr><td>PHP环境：<?php echo PHP_VERSION;?></td></tr>
							<tr><td>Mysql版本：<?php echo $this->connection->getServerVersion();?></td></tr>
							<tr><td>版权所有： 惠山区长安新麦网络信息技术服务部</td></tr>
						</table>
						</div>
				</div>
				
			</div>
			<div class="column">
				<div class="portlet">
					<div class="portlet-header">使用说明</div>
					<div class="portlet-content"
						style="height: 250px; overflow-y: auto; overflow-x: none;">
						<table class="table">
							<tr><td>第一步：在系统设置中进行设置基本信息、语言设置、安全与效率等</td></tr>
							<tr><td>第二步：在界面设置中选择网站模板并设置相关参数</td></tr>
							<tr><td>第三步：在栏目配置中设置网站导航栏目及相关参数</td></tr>
							<tr><td>第四步：在内容管理中添加网站内容、底部信息等</td></tr>
						</table>
						</div>
				</div>
				
				
				<div class="portlet">
					<div class="portlet-header">服务与支持</div>
					<div class="portlet-content"
						style="height: 250px; overflow-y: auto; overflow-x: none;">
							<div class="table p0">
							    <table>
							          <thead>
							            <tr><th class="left" colspan="4">服务与支持</th>
							          </tr></thead>
							          <tbody>
							             <tr>
							             	<td>技术支持</td>
							             	<td>使用手册</td>
							             	<td>官方网站</td>
							             	<td>定制开发</td>
							             </tr>
							             <tr>
							             	<td colspan="4">邮箱：service@x-mai.com </td>
							             </tr>
							          </tbody>
							    </table>
							</div>
						</div>
				</div>
				
			</div>
			<div class="column">
				<div class="portlet">
					<div class="portlet-header">新麦新闻</div>
					<div class="portlet-content"
						style="height: 250px; overflow-y: auto; overflow-x: none;">
						
						</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
	$( ".column" ).sortable({
		connectWith: ".column"
	});

	$( ".portlet" ).addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
		.find( ".portlet-header" )
			.addClass( "ui-widget-header ui-corner-all" )
			.prepend( "<span class='ui-icon ui-icon-minusthick'></span>")
			.end()
		.find( ".portlet-content" );

	$( ".portlet-header .ui-icon" ).click(function() {
		$( this ).toggleClass( "ui-icon-minusthick" ).toggleClass( "ui-icon-plusthick" );
		$( this ).parents( ".portlet:first" ).find( ".portlet-content" ).toggle();
	});

	$( ".column" ).disableSelection();
});
</script>